#ifndef M_HOME_H
#define M_HOME_H
#include "tkc/emitter.h"
/**
 * @class m_home_t
 * @parent emitter_t
 * 
 * @annotation ["model"]
 * model for home_page
 * 
 */
typedef struct {
    emitter_t emitter;

     /**
     * @property {int32_t} page_num
     * @annotation ["readable", "writable"]
     * page num
     */
    int32_t page_num;
} m_home_t;


/**
 * @method m_home_create
 * m_home_create
 * @annotation ["constructor"]
 * @return {m_home_t*} return m_home_t
 */
m_home_t* m_home_create(void);

/**
 * @method m_home_destroy
 * m_home_destroy
 * @annotation ["destructor"]
 * @param {m_home_t*} home
 * @return {ret_t} RET_OK -> success, others -> failed
 */
ret_t m_home_destroy(m_home_t* home);







/**
 * @method m_home_emit_mqtt
 * to setting page
 * @annotation ["command"]
 * @param {m_home_t *} home
 * @return {ret_t} RET_OK -> success, others -> failed
 */
ret_t m_home_emit_mqtt(m_home_t *home);

#endif 